import request from '@/utils/request';

export function checkLogin() {
    return request({
        url: '/user/checkLogin.do',
        method: 'post'
    });
}

export function login(loginInfo){
    let {username, password} = loginInfo;
    return request({
        url: '/user/login.do',
        method: 'post',
        data: {
            username,
            password
        }
    });
}

export function logout(){
    return request({
        url: '/user/logout.do',
        method: 'post'
    });
}